#include "day6_7.h"
#include <QApplication>
#include <osg/MatrixTransform>

#include <CommonLib/MainWindow/MainWindow.h>
#include <CommonLib/ListWidget/ListWidget.h>
#include <CommonLib/Primitive/PrimitiveWidget.h>
#include <CommonLib/Callback/Callback.h>
#include <CommonLib/Visitor/Visitor.h>
#include "osgDB/ReadFile"

int day6_7( int argc, char **argv )
{
    QApplication app(argc, argv);
    CMainWindow mainWindow;
    CListWidget listWidget(&mainWindow);

    osg::ref_ptr<CModelCallbackNode> rpMt = new CModelCallbackNode;
    CModelVisitor ModelVisitor;
    listWidget.addModel(QString::fromLocal8Bit("cow"), rpMt.get());
    rpMt->accept(ModelVisitor);
    ModelVisitor.printMap();

    mainWindow.home();
    mainWindow.setGeometry( 560, 240, 800, 600 );
    mainWindow.show();
    return app.exec();
}
